<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/lottery/js/validate.js"></script>
<link href="/lottery/css/common.css" type="text/css" rel="stylesheet" />
<title>活动列表</title>
</head>

<body>
<div id="man_zone1">
	<div class="operation_tile">
		活动列表
	</div>
	<SPAN class="button_title"">
			<c:out value="${message}"/>
	</SPAN>
	
	<display:table name="phaseList"  pagesize="10" requestURI="/lottery/admin/phase.do?action=findByAll"  sort ="external" id ="row" partialList ="true"  size ="resultSize">
		<display:column property ="phaseName" title ="活动名称" maxLength="15" style="white-space: nowrap; margin-left: 5px;"/>
		<display:column property ="gmtStart" format="{0,date,yyyy-MM-dd}" title ="开始时间"/>
		<display:column property ="gmtEnd" format="{0,date,yyyy-MM-dd}" title ="结束时间"/>
		<display:column property="exceptParticiants" title="参加人数(人)" style="width:15%"/>
		<display:column property="dailyQuestion" title="每日题数" style="width:10%"/>
		<display:column title="操作" style="width:20%">
			<c:if test="${row.isActivity=='n'}">
				<c:if test="${row.haveQuota == 'n' && row.haveQuestion =='n'}">
					<a href="/lottery/admin/phase.do?action=findById&id=<c:out value="${row.phaseId}"/>">修改</a>
					|
				</c:if>
				<a href="/lottery/admin/phase.do?action=delete&id=<c:out value="${row.phaseId}"/>" onclick="return phaseDel();">删除</a>
				<c:if test="${row.haveQuestion =='n'}">
				|
				<a href="/lottery/admin/phase.do?action=antuGenerate&id=<c:out value="${row.phaseId}"/>">题目生成</a>
				</c:if>
				<c:if test="${row.haveQuestion =='y'}">
					| 
					<a href="/lottery/admin/phase.do?action=displayPhaseQuestion&id=<c:out value="${row.phaseId}"/>"/>查看题目</a>
				</c:if>
			</c:if>
			
			<c:if test="${row.isActivity=='y'}">
				<a href="/lottery/admin/phase.do?action=delete&id=<c:out value="${row.phaseId}"/>" onclick="return phaseDel();">删除</a>
			</c:if>
		</display:column>
	</display:table>
</div>
</body>
</html>

